<template>
   <div class="container" >
    <TableSlot :list="listData">
        <template #default="item">
            <span>{{ item.userNameS }}</span>
        </template>
        <template v-slot:userWord="item">
            <span>{{ item.userWordS }}</span>
        </template>
        <template v-slot:userBumb="item">
            <span>{{ item.userBumbS }}</span>
        </template>
        <template #tr="item">
            <td>
                <a class="btn">
                    {{ item.tr.userName }}
                </a>
            </td>
            <td>
                <a class="btn">
                    {{ item.tr.userWord }}
                </a>
            </td>
            <td>
                <a class="btn">
                    {{ item.tr.userBumb }}
                </a>
            </td>
        </template>
    </TableSlot>
   </div>
</template>
<script>
import TableSlot from './components/TableSlot.vue';
   export default {
     name: '',
     components:{
        TableSlot
     },
     data: function(){
       return {
        listData:[
            {userName:'张三',userWord:'123',userBumb:'110'},
            {userName:'李四',userWord:'456',userBumb:'120'},
            {userName:'王五',userWord:'789',userBumb:'119'}
        ]
       }
     },
     methods:{
     }
   }
</script>
<style>
  html,
  body, 
  #app{
    height: 100%;
  }
</style>
<style scoped>
   .container {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 100%;
      background-color: aliceblue;
   }
   .tr{
      width: 200px;
      flex-basis: 50px;
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      background-color: beige;
      align-items: center;
    }
   .second{
      background-color: aqua;
   }
</style>